package com.zmn.oms.persistence.interfaces.quotation3;


import com.zmn.oms.model.entity.quotation3.OrderFault;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OrderFaultDao {
    int deleteByPrimaryKey(Long orderFaultId);

    int insert(OrderFault record);

    int batchInsert(List<OrderFault> records);

    int insertSelective(OrderFault record);

    OrderFault selectByPrimaryKey(Long orderFaultId);

    List<OrderFault> listByOrderId(Long orderId);

    int updateByPrimaryKeySelective(OrderFault record);

    int updateByPrimaryKey(OrderFault record);

    int deleteByOrderIdAndFaultIds(@Param("orderId") Long orderId, @Param("faultIds") List<Integer> faultIds);

    int deleteByOrderId(@Param("orderId") Long orderId);
}